<{include file="_head.html"}>

<{include file="head.html"}>
<script type="text/javascript">
$(function(){
    $(".j_mainyny").click(function(){
      var del_id=$(this).attr("del_id");
      obj=$(this);  //转换作用域
      $.post(
            'my_message_sys.php?action=del',
            {del_id:del_id},
            function(data){
              if(data.error==1){
                alert('删除成功');
                obj.parent(".j_mainynr").remove();
              }else{
                 alert("删除失败，请重试！");
              }
            },"json")

    })

})
</script>
<!-- 主体内容-开始 -->
<div class="j_main">
    <{include file="user_left.html"}>
	<div class="j_mainy">
    	<div class="j_mainyt">
        	<a href="my_message.php" class="j_mainyt1 ">私信</a>
        	<!-- <a href="#" class="j_mainyt1">未关注私信</a> -->
        	<a href="my_message_sys.php" class="j_mainyt1 j_mainyt1_hov">系统消息</a>
        </div>
        <div class="j_mainyn">
            <{foreach item=loop from=$row}>
        	<div class="j_mainynr">
            	<span class="j_sxynrz">
                	<span class="j_sxynrzs"><{$loop.title}></span>
                	<span class="j_sxynrzx"><a href="my_message_sys_info.php?id=<{$loop.id}>"><{$loop.content}></a></span>
                </span>
                <span class="j_mainynrc"><{$loop.create_time}></span>
                <a href="javascript:;" class="j_mainyny" del_id="<{$loop.id}>">删除</a>
            </div>
            <{/foreach}>
     
            <div class="page">
             <ul class="ul_page"><{$page}> </ul>
            </div>
            
        </div>
    </div>

</div>
<!-- 主体内容-结束 -->

<{include file="footer.html"}>
